package com.duobaoyu.dby.supply.common.biz.remote.dto.order;

import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.util.List;

/**
 * @author fengshaoyu
 * @version 1.0.0
 * <p>确认订单</p>
 * @date 2022/5/23 17:58
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ConfirmOrderDTO implements Serializable {
    private static final long serialVersionUID = 5869722695510819854L;

	/**
	 * 供应链交易单号
	 */
	@ApiModelProperty(name = "supplyTradeSn", value = "供应链交易单号")
	private String supplyTradeSn;
	/**
	 * 供应链订单号
	 */
	@ApiModelProperty(name = "orderSnList", value = "供应链订单号")
	private List<String> orderSnList;

	public boolean check(){
		return StringUtils.isNotEmpty(supplyTradeSn) || CollectionUtils.isNotEmpty(orderSnList);
	}
}
